package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.Customer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CustomerDao {
    List<Customer> selectList(@Param("offset") Integer offset,
                              @Param("rows") Integer rows,
                              @Param("customerName") String customerName);

    Integer getCustomerCount( @Param("customerName") String customerName);

    Customer getCustomerById(Integer customerId);

    void saveCustomer(Customer customer);

    void updateCustomer(Customer customer);

    void delete(@Param("ids") String[] ids);
}
